<%-- 
    Document   : home
    Created on : 12/01/2014, 23:07:21
    Author     : Adriano
--%>

<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="h" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
    <jsp:useBean id="User" type="model.User" scope="session"/> 
    <head>   

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Gestão Contábil</title>









        <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"> 
        <link rel="stylesheet"  href="resources/css/bootstrap.min.css" />
        <link rel="stylesheet" type="text/css" href="resources/css/main_new.css" />
        <link rel="stylesheet" type="text/css" href="resources/css/smoothness/jquery-ui.css">
        <link rel="stylesheet" type="text/css" href="resources/css/jquery.dataTables.css">
        <link rel="stylesheet" type="text/css" href="resources/css/dataTables.tableTools.css">
        <link rel="stylesheet"  href="resources/css/bootstrap.min.css" />



        <!--        <script>
                    $(function() {
                        $("#myTabContent").tabs();
                    });
                </script>-->


    </head>
    <body class="body">
        <div class="wrapper">
            <%@ include file="header.jsp" %>
            <nav class="nav-content">
                <ul>
                    <li class="user"><a href="#">Usuários</a>
                        <ul class="user-menu">
                            <li><a href="#" onclick="doAjaxPostFormRegisterUser();">Cadastrar</a></li>
                            <!--<li><a href="#" onclick="UsuarioEdit();">Editar</a></li>-->
                            <li class="_search"><a href="#"  onclick="searchUser();">Pesquisar</a></li>
                        </ul>
                    </li>
                    <li class="enterprise"><a href="#">Empresas</a>
                        <ul class="enterprise-menu">
                            <li><a href="#" onclick="doAjaxPostEnterprise();">Cadastrar</a></li>
                            <!--                            <li><a href="#" onclick="doAjaxPostEditEnterpriseSearch();">Editar</a></li>-->
                            <li><a href="#" onclick="doAjaxPostSearchEnterprise();" >Pesquisar</a></li>
                        </ul>
                    </li>

                    <li class="accountant"><a href="#">Contador</a>
                        <ul class="user-menu">
                            <li><a href="#" onclick="doAjaxPostFormRegisterAccountant();">Cadastrar</a></li>
                            <!--<li><a href="#" onclick="doPostBuscaAcccountant();">Editar</a></li>-->
                            <li><a href="#" onclick="searchAccountant();">Pesquisar</a></li>
                        </ul>
                    </li>
                    <li class="accounts"><a href="#">Grupo de Contas</a>
                        <ul class="accounts-menu">
                            <li><a href="#" onclick="doPostFormGroupAccount();">Cadastrar</a></li>
                            <li><a href="#">Pesquisar</a></li>
                        </ul>

                    </li>


                    <li class="accounts"><a href="#">Plano de Contas</a>
                        <ul class="accounts-menu">
                            <li><a href="#" onclick="doPostFormPlanGroupAccount();
                                   ">Cadastrar</a></li>
                            <li><a href="#">Pesquisar</a></li>
                        </ul>

                    </li>




                    <li class="historic"><a href="#">Historico</a>
                        <ul class="historic-menu">
                            <li><a href="#" onclick="doAjaxPostHistorico();">Cadastrar</a></li>
                            <li><a href="#" onclick="doAjaxPostBuscaHistorico();">Pesquisar</a></li>


                        </ul>



                    </li>

                    <li class="lancamentos"><a href="#">Lançamentos</a>
                        <ul class="lancamentos-menu">
                            <li> 
                                <a href="#" onclick="doAjaxPostLancamentos();">Cadastrar</a>
                            </li>
                        </ul>
                    </li>

                    <li class="reports"><a href="#">Relatórios</a>
                        <ul class="reports-menu">
                            <li class="reports">
                                <a id="reports" href="#" onclick="AllUser();" >Usuários</a>
                            </li>
                            <li class="reports"><a href="#" onclick="AllEnterprise();">Empresas</a></li>
                            <li class="reports"><a href="#" onclick="AllAccountant();">Contadores</a></li>
                            <li><a href="#">Contas</a></li>
                        </ul>


                    </li>
                    <li><a href="#">Relatórios Contábeis</a></li>
                    <li><a href="Logout.do">Sair</a></li>
                </ul>
            </nav>

            <div class="main-content">
                <div class="msg "></div>
                <div class="container">
                    <div class="form-group ">
                        <div id="resources" class="resources">

                            <ul id="resources-content" class="resources-content"> 
                                <li class="user-button buttons">
                                    <a href="#" onclick="mostraResourcesUser()">
                                        <img src="resources/images/ico_user.png" alt="Usuários" title="Usuários">
                                        Usuários
                                    </a>
                                    <div class="sub-reports">
                                        <div class="sub-reports buttons">
                                            <ul>
                                                <li class="button-register">
                                                    <a href="#" onclick="doAjaxPostFormRegisterUser();">
                                                        <img src="resources/images/icon_cadastro.png" alt="Cadastrar Usuários" title="Cadastrar Usuários">
                                                    </a>
                                                    <label>Cadastrar</label>
                                                </li>
                                            </ul>
                                        </div>
                                        <div class="sub-reports buttons">
                                            <ul>
                                                <li class="button-search">
                                                    <a href="#" onclick="searchUser();">
                                                        <img src="resources/images/ico_search.png" alt="Pesquisar Usuários" title="Pesquisar Usuários">
                                                    </a>
                                                    <label>Pesquisar</label>
                                                </li>

                                            </ul>
                                        </div>

                                    </div>
                                </li>

                                <li class="enterprise-button buttons">
                                    <a href="#">
                                        <img src="resources/images/ico_enterprise.png" alt="Empresas" title="Empresas">
                                        Empresas
                                    </a>

                                    <div class="sub-reports">
                                        <div class="sub-reports buttons">
                                            <ul>
                                                <li class="button-register-enterprise">
                                                    <a href="#" onclick="cadastrarEmpresa();">
                                                        <img src="resources/images/icon_cadastro.png" alt="Cadastrar Empresa" title="Cadastrar Empresa">
                                                    </a>
                                                    <label>Cadastrar</label>
                                                </li>
                                            </ul>
                                        </div>
                                        <div class="sub-reports buttons">
                                            <ul>
                                                <li class="button-search-enterprise">
                                                    <a href="#" onclick="doAjaxPostSearchEnterprise();">
                                                        <img src="resources/images/ico_search.png" alt="Pesquisar Empresa" title="Pesquisar Empresa">
                                                    </a>
                                                    <label>Pesquisar</label>
                                                </li>

                                            </ul>
                                        </div>

                                    </div>
                                </li>

                                <li class="accounts-button buttons">
                                    <a href="#">
                                        <img src="resources/images/ico_plansAccounts.png" alt="Contas" title="Contas">
                                        Contas
                                    </a>

                                </li>
                                <li class="accountants-button buttons">
                                    <a href="#">
                                        <img src="resources/images/ico_accountant.png" alt="Contadores" title="Contadores">
                                        Contadores
                                    </a>

                                    <div class="sub-reports">
                                        <div class="sub-reports buttons">
                                            <ul>
                                                <li class="button-register-enterprise">
                                                    <a href="#" onclick="doAjaxPostFormRegisterAccountant();">
                                                        <img src="resources/images/icon_cadastro.png" alt="Cadastrar Contador" title="Cadastrar Contador">
                                                    </a>
                                                    <label>Cadastrar</label>
                                                </li>
                                            </ul>
                                        </div>
                                        <div class="sub-reports buttons">
                                            <ul>
                                                <li class="button-search-enterprise">
                                                    <a href="#" onclick="searchAccountant();">
                                                        <img src="resources/images/ico_search.png" alt="Pesquisar Contador" title="Pesquisar Contador">
                                                    </a>
                                                    <label>Pesquisar</label>
                                                </li>

                                            </ul>
                                        </div>

                                    </div>

                                </li>
                                <li class="reports-button buttons">
                                    <a href="#">
                                        <img src="resources/images/ico_reports.png" alt="Relatórios" title="Relatórios">
                                        Relatórios
                                    </a>

                                    <div class="sub-reports buttons">
                                        <ul>
                                            <li class="button-user reports">
                                                <a href="#" onclick="AllUser();">
                                                    <img src="resources/images/ico_user.png" alt="Relatório de Usuários" title="Relatório de Usuários">
                                                </a>
                                                <label>Usuários</label>
                                            </li>
                                        </ul>
                                    </div>
                                    <div class="sub-reports buttons">
                                        <ul>
                                            <li class="button-enterprise reports">
                                                <a href="#" onclick="AllEnterprise();">
                                                    <img src="resources/images/ico_enterprise.png" alt="Relatório de Empresa" title="Relatório de Empresa">
                                                </a>
                                                <label>Empresas</label>
                                            </li>

                                        </ul>
                                    </div>
                                    <div class="sub-reports buttons">
                                        <ul>
                                            <li class="button-accountant reports">
                                                <a href="#" onclick="AllAccountant();">
                                                    <img src="resources/images/ico_accountant.png" alt="Relatório de Contadores" title="Relatório de Contadores">
                                                </a>
                                                <label>Contadores</label>
                                            </li>

                                        </ul>
                                    </div>                                



                                </li>


                            </ul>



                        </div>

                    </div>

                </div> 
            </div>
            <%@ include file="footer.jsp" %>
        </div>

        <div ng-if="dataLoading()" id="loading" class="close">

            <div id="content-loading">
                <div id="loading_1G" class="loading"></div>
                <div id="loading_2G" class="loading"></div>
                <div id="loading_3G" class="loading"></div>
                <div id="loading_4G" class="loading"></div>
                <div id="loading_5G" class="loading"></div>
                <div id="loading_6G" class="loading"></div>
                <div id="loading_7G" class="loading"></div>
                <div id="loading_8G" class="loading"></div>

                <span class="">Aguarde . . . </span>
            </div> 

        </div>


    </body>
</html>
